# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Rémy Oudompheng <oudomphe@clipper.ens.fr>

pkgname=libspiro
epoch=1
pkgver=20221101
pkgrel=2
pkgdesc='Library that simplifies the drawing of beautiful curves'
arch=('loong64' 'x86_64')
url='https://github.com/fontforge/libspiro'
license=('GPL3')
source=("https://github.com/fontforge/libspiro/releases/download/$pkgver/$pkgname-dist-$pkgver.tar.gz")
depends=('glibc')
sha256sums=('5984fb5af3e4e1f927f3a74850b705a711fb86284802a5e6170b09786440e8be')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

check() {
  cd $pkgname-$pkgver
  make check
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
